<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
    <title>用户信息变更记录管理</title>
    <meta name="decorator" content="default"/>
    <script type="text/javascript">
        $(document).ready(function() {
            
        });
        function page(n,s){
            $("#pageCurrent").val(n);
            $("#pageSize").val(s);
            $("#searchForm").submit();
            return false;
        }
    </script>
</head>
<body>
    <ul class="nav nav-tabs">
        <li class="active"><a href="${ctx}/sys/sysUserChangeLog/">用户信息变更记录列表</a></li>
        <shiro:hasPermission name="sys:sysUserChangeLog:edit">
            <li><a href="${ctx}/sys/sysUserChangeLog/form">用户信息变更记录添加</a></li>
        </shiro:hasPermission>
    </ul>
    <form:form id="searchForm" modelAttribute="sysUserChangeLog" action="${ctx}/sys/sysUserChangeLog/" method="post" class="breadcrumb form-search">
        <input id="pageCurrent" name="pageCurrent" type="hidden" value="${page.current}"/>
        <input id="pageSize" name="pageSize" type="hidden" value="${page.size}"/>
        <ul class="ul-form">
            <li><label>user_id：</label>
                <sys:treeselect id="userId" name="userId" value="${userId}" labelValueUrl="/sys/sysUser/treeValue"
                    title="用户" url="/sys/sysOffice/treeData?type=3" cssClass="input-small" allowClear="true" notAllowSelectParent="true"/>
            </li>
            <li><label>wechat_openid：</label>
                <form:input path="wechatOpenid" htmlEscape="false" maxlength="64" class="input-medium"/>
            </li>
            <li><label>归属公司：</label>
                <form:input path="companyId" htmlEscape="false" maxlength="64" class="input-medium"/>
            </li>
            <li><label>归属部门：</label>
                <sys:treeselect id="officeId" name="officeId" value="${officeId}" labelValueUrl="/sys/sysOffice/treeValue"
                    title="机构" url="/sys/sysOffice/treeData?type=2" cssClass="input-small" allowClear="true" notAllowSelectParent="true"/>
            </li>
            <li><label>所属区域ID：</label>
                <form:input path="orgId" htmlEscape="false" maxlength="64" class="input-medium"/>
            </li>
            <li><label>登录名：</label>
                <form:input path="loginName" htmlEscape="false" maxlength="100" class="input-medium"/>
            </li>
            <li><label>密码：</label>
                <form:input path="password" htmlEscape="false" maxlength="100" class="input-medium"/>
            </li>
            <li><label>工号：</label>
                <form:input path="no" htmlEscape="false" maxlength="100" class="input-medium"/>
            </li>
            <li><label>姓名：</label>
                <form:input path="name" htmlEscape="false" maxlength="100" class="input-medium"/>
            </li>
            <li><label>邮箱：</label>
                <form:input path="email" htmlEscape="false" maxlength="200" class="input-medium"/>
            </li>
            <li><label>电话：</label>
                <form:input path="phone" htmlEscape="false" maxlength="200" class="input-medium"/>
            </li>
            <li><label>手机：</label>
                <form:input path="mobile" htmlEscape="false" maxlength="200" class="input-medium"/>
            </li>
            <li><label>用户类型：</label>
                <form:input path="userType" htmlEscape="false" maxlength="1" class="input-medium"/>
            </li>
            <li><label>用户头像：</label>
                <form:input path="photo" htmlEscape="false" maxlength="1000" class="input-medium"/>
            </li>
            <li><label>最后登陆IP：</label>
                <form:input path="loginIp" htmlEscape="false" maxlength="100" class="input-medium"/>
            </li>
            <li><label>最后登陆时间：</label>
                <input name="loginDate" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate"
                    value="<fmt:formatDate value="${sysUserChangeLog.loginDate}" pattern="yyyy-MM-dd HH:mm:ss"/>"
                    onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:false});"/>
            </li>
            <li><label>是否可登录：</label>
                <form:input path="loginFlag" htmlEscape="false" maxlength="64" class="input-medium"/>
            </li>
            <li><label>会员等级：</label>
                <form:input path="memberLevel" htmlEscape="false" maxlength="2" class="input-medium"/>
            </li>
            <li><label>会员余额：</label>
                <form:input path="memberBalance" htmlEscape="false" class="input-medium"/>
            </li>
            <li><label>会员积分：</label>
                <form:input path="memberPoint" htmlEscape="false" maxlength="8" class="input-medium"/>
            </li>
            <li class="btns"><input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/></li>
            <li class="clearfix"></li>
        </ul>
    </form:form>
    <sys:message content="${message}"/>
    <table id="contentTable" class="table table-striped table-bordered table-condensed">
        <thead>
            <tr>
                <th>user_id</th>
                <th>wechat_openid</th>
                <th>归属公司</th>
                <th>归属部门</th>
                <th>所属区域ID</th>
                <th>登录名</th>
                <th>密码</th>
                <th>工号</th>
                <th>姓名</th>
                <th>邮箱</th>
                <th>电话</th>
                <th>手机</th>
                <th>用户类型</th>
                <th>用户头像</th>
                <th>最后登陆IP</th>
                <th>最后登陆时间</th>
                <th>是否可登录</th>
                <th>会员等级</th>
                <th>会员余额</th>
                <th>会员积分</th>
                <th>备注信息</th>
                <shiro:hasPermission name="sys:sysUserChangeLog:edit">
                    <th>操作</th>
                </shiro:hasPermission>
            </tr>
        </thead>
        <tbody>
        <c:forEach items="${page.records}" var="sysUserChangeLog">
            <tr>
                <td><a href="${ctx}/sys/sysUserChangeLog/form?id=${sysUserChangeLog.id}">
                    ${fns:getUserNameById(sysUserChangeLog.userId)}
                </a></td>
                <td>
                    ${sysUserChangeLog.wechatOpenid}
                </td>
                <td>
                    ${sysUserChangeLog.companyId}
                </td>
                <td>
                    ${fns:getOfficeNameById(sysUserChangeLog.officeId)}
                </td>
                <td>
                    ${sysUserChangeLog.orgId}
                </td>
                <td>
                    ${sysUserChangeLog.loginName}
                </td>
                <td>
                    ${sysUserChangeLog.password}
                </td>
                <td>
                    ${sysUserChangeLog.no}
                </td>
                <td>
                    ${sysUserChangeLog.name}
                </td>
                <td>
                    ${sysUserChangeLog.email}
                </td>
                <td>
                    ${sysUserChangeLog.phone}
                </td>
                <td>
                    ${sysUserChangeLog.mobile}
                </td>
                <td>
                    ${sysUserChangeLog.userType}
                </td>
                <td>
                    ${sysUserChangeLog.photo}
                </td>
                <td>
                    ${sysUserChangeLog.loginIp}
                </td>
                <td>
                    <fmt:formatDate value="${sysUserChangeLog.loginDate}" pattern="yyyy-MM-dd HH:mm:ss"/>
                </td>
                <td>
                    ${sysUserChangeLog.loginFlag}
                </td>
                <td>
                    ${sysUserChangeLog.memberLevel}
                </td>
                <td>
                    ${sysUserChangeLog.memberBalance}
                </td>
                <td>
                    ${sysUserChangeLog.memberPoint}
                </td>
                <td>
                    ${sysUserChangeLog.remarks}
                </td>
                <shiro:hasPermission name="sys:sysUserChangeLog:edit">
                    <td>
                        <a href="${ctx}/sys/sysUserChangeLog/form?id=${sysUserChangeLog.id}">修改</a>
                        <a href="${ctx}/sys/sysUserChangeLog/delete?id=${sysUserChangeLog.id}" onclick="return confirmx('确认要删除该用户信息变更记录吗？', this.href)">删除</a>
                    </td>
                </shiro:hasPermission>
            </tr>
        </c:forEach>
        </tbody>
    </table>
    <div class="pagination">${page}</div>
</body>
</html>